import {
	get,
	post
} from '../request.js'
//查询订单
export const getOderList = (state) => get('/orders/list/' + state)


//获取首页tab记账页面的信息，判断是否是店长来决定如果是店长则显示店操作台
export const orderInfo = () => get('/orders/info')

//红木管理-->订单管理
export const allManagerOrders = (state, data) => post('/orders/all/' + state, data)

//修改订单状态
export const updateOrderStateByOrderId = (id, state) => get('/orders/update/state',{id,state})

//一键操作
export const easyShuttle = (state)=> get('/orders/update/all',{state})

//重选买家
export const setUserInfo = (id, invitationCode)=> get('/orders/updateBuyUser',{id, invitationCode})